package cn.stylefeng.guns.modular.taskinfo.service.impl;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.taskinfo.entity.AnswerRecord;
import cn.stylefeng.guns.modular.taskinfo.entity.GroupPhotoRecord;
import cn.stylefeng.guns.modular.taskinfo.entity.TaskInfo;
import cn.stylefeng.guns.modular.taskinfo.mapper.TaskInfoMapper;
import cn.stylefeng.guns.modular.taskinfo.service.TaskService;
import cn.stylefeng.roses.kernel.model.response.ResponseData;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * _*_cding : utf-8 _*_
 *
 * @Time : 2023/4/22 14:58
 * @Author : Sen
 * @File : TaskInfoServiceImpl
 * @Project: demo-projects-master
 */
@Service
public class TaskInfoServiceImpl implements TaskService {

    private final TaskInfoMapper taskInfoMapper;

    public TaskInfoServiceImpl(TaskInfoMapper taskInfoMapper) {
        this.taskInfoMapper = taskInfoMapper;
    }

    @Override
    public List<TaskInfo> taskList(Integer moduleId) {
        return taskInfoMapper.taskList(moduleId);
    }

    @Override
    public List<TaskInfo> taskInfoQuestion(Integer taskId) {

        return taskInfoMapper.taskInfoQuestion(taskId);
    }

    @Override
    public void insert(Integer userId, Integer taskId, AnswerRecord answerRecord) {
        taskInfoMapper.insert(userId,taskId,answerRecord);
    }

    @Override
    public void insertFlie(Integer teamId, String uploadfile) {
        taskInfoMapper.insertUrl(teamId,uploadfile);
    }


}
